<!DOCTYPE html>
<html>
<head>
<base href="<?php echo XXF_HTTP?>" />
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<title>评教系统</title>
<style type="text/css">
*{margin:0;padding:0;}
</style>
<script src="js/jquery.js"></script>
<script src="js/jquery.xxfset.js"></script>
<script>
function login(pjid){
	location.href='pingce/type/select/pjid/'+pjid;
}
</script>
</head>
<body>
	<div style="background:url(img/pjbg.jpg) no-repeat;width:900px;height:600px;margin:0 auto;">
		<div style="font-size: 30px;font-weight:bold;padding-top:150px;padding-left:140px;">
			重庆市矿业工程学校评教系统
		</div>
		<div style="width: 280px;margin:0 auto;padding-top:100px;font-size:30px;">
        <?php 
        $pjid=xdb::getInstance()->getvar("select id from pingjiao where runing like '开启'");
        if($pjid){
           ?>
        	<input type="button" value="点击登陆" onclick="login(<?php echo $pjid?>)" style="width: 150px;height:60px;font-size:30px;">
        	<?php  
        }else{
            echo '当前没有评教项目！';
        }
        ?>
        </div>
	</div>
</body>
</html>